package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 销售车
 * （销售车编号，销售数量，库存商品外键，库存品对象，销售员编号）
 */

@ApiModel(value = "销售车")
@TableName("t_sell")
public class SellBean {
    @ApiModelProperty(hidden = true)
    @TableId(value = "pk_sellId",type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "销售数量")
    @TableField("s_num")
    private Integer num;//销售数量
    @ApiModelProperty(value = "库存商品外键")
    @TableField("fk_goodsId")
    private String fk_goodsId;//库存商品外键
    @ApiModelProperty(value = "库存商品对象")
    @TableField(exist = false)
    private GoodsBean goodsBean;//库存商品对象
    @ApiModelProperty(value = "销售员外键编号")
    @TableField("fk_userId")
    private Integer fk_userId;//销售员外键编号

    public SellBean() {
    }

    public SellBean(Integer num) {
        this.num = num;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getFk_goodsId() {
        return fk_goodsId;
    }

    public void setFk_goodsId(String fk_goodsId) {
        this.fk_goodsId = fk_goodsId;
    }

    public GoodsBean getGoodsBean() {
        return goodsBean;
    }

    public void setGoodsBean(GoodsBean goodsBean) {
        this.goodsBean = goodsBean;
    }

    public Integer getFk_userId() {
        return fk_userId;
    }

    public void setFk_userId(Integer fk_userId) {
        this.fk_userId = fk_userId;
    }

    @Override
    public String toString() {
        return "SellBean{" +
                "id=" + id +
                ", num=" + num +
                ", fk_goodsId='" + fk_goodsId + '\'' +
                ", goodsBean=" + goodsBean +
                ", fk_userId=" + fk_userId +
                '}';
    }
}
